package com.dd.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("user")
@ResponseBody
public class UserController {

    @RequestMapping(value = "say")
    public String sayHello(){
        System.out.println("hello springMVC!");

        return "hello springMVC!";
    }

    @RequestMapping("say2")
    public String sayHello2(){
        System.out.println("hello springMVC  2 !");

        return "Hello.jsp";
    }
}
